package matt.design;

import java.util.ArrayList;


public class User {

	String firstname, lastname, email, password, username;
	ArrayList<Group> groups;
	
	public User(String firstname, String lastname, String email, String password){
		this.firstname = firstname;
		this.lastname = lastname;
		this.email = email;
		this.password = password;
		groups = new ArrayList<Group>();
		Group default_group = new Group("Default");
		groups.add(default_group);
	}
	
	public String getUsername(){
		return email;
	}
	
	public String getPassword(){
		return password;
	}
	
	public String getFirst(){
		return firstname;
	}
	
	public String getLast(){
		return lastname;
	}
	
	public String toString(){
		String string1 = firstname + " " + lastname + " " + email;
		String string2 = username + " " + password;
		return string2 + "\n" + string1;
	}
}
